import Main from "@/components/main";

export default [
    {
        path: '/login',
        name: 'login',
        meta: {
            title: 'Login - 登录',
            hideInMenu: true
        },
        component: () => import('@/view/login/login.vue')
    },
    {
        path: "/",
        name: "_home",
        redirect: '/home',
        component: Main,
        meta: {
            hideInMenu: true,
            notCache: true
        },
        children: [
            {
                path: "/home",
                name: "home",
                meta: {
                    hideInMenu: true,
                    title: '首页',
                    notCache: true
                },
                component: () => import('@/view/single-page/home')
            }
        ]
    },
    {
        path: "/components",
        name: "components",
        component: Main,
        meta: {
            title: '组件'
        },
        children: [
            {
                path: "tree_select_page",
                name: "tree_select_page",
                meta: {
                    title: '树状下拉选择器'
                },
                component: () => import('@/view/components/tree-select/index.vue')
            },
            {
                path: "count_to_page",
                name: "count_to_page",
                meta: {
                    title: '数字渐变'
                },
                component: () => import('@/view/components/count-to/index.vue')
            }
        ]
    },
    {
        path: "/menu1",
        name: "menu1",
        component: Main,
        meta: {
            title: '三级菜单1'
        },
        children: [
            {
                path: "menu2",
                name: "menu2",
                meta: {
                    title: '三级菜单2'
                },
                component: () => import('@/view/components/tree-select/index.vue'),
                children: [
                    {
                        path: "menu3",
                        name: "menu3",
                        meta: {
                            title: '三级菜单3'
                        },
                        component: () => import('@/view/components/tree-select/index.vue')
                    }
                ]

            }
        ]
    },
    {
        path: '/401',
        name: 'error_401',
        meta: {
            hideInMenu: true
        },
        component: () => import('@/view/error-page/401.vue')
    },
    {
        path: '/500',
        name: 'error_500',
        meta: {
            hideInMenu: true
        },
        component: () => import('@/view/error-page/500.vue')
    },
    {
        path: '*',
        name: 'error_404',
        meta: {
            hideInMenu: true
        },
        component: () => import('@/view/error-page/404.vue')
    }

]
